package com.msb.sentinelOpenfeign.config;


import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/****************************************************
 * OpenFeign 配置类
 * @author lbf
 * @date 2025/6/27 14:57
 ****************************************************/

/**
 * 指定全局的负载均衡策略，使用OpenFeign 调用任何服务使用的都是 RibbonIRuleConfig 中配置的负载均衡策略
 */
//@RibbonClients(defaultConfiguration = RibbonIRuleConfig.class)
@Configuration
public class OpenFeignConfig {

    /**
     * 配置 OpenFeign 日志
     * @return
     */
    @Bean
    public feign.Logger.Level openfeignLogger(){
        return feign.Logger.Level.FULL;
    }
}
